<?php



class Site_Home_Controller extends Base_Controller {

	public $restful = true;

    public function __construct()
    {
    	
        parent::__construct();
        //--Your Code --//
        $this->theme->set_theme("default") ;
    }
	
	
	public function get_index(){


        //--Show Parent Category--//
        $data['category_parent'] = Categories::parent(0);

        //--Meta Data --//
        $this->theme->title(Settings::get('en','meta_title').' - '.Settings::get('en','site_title'));
        $this->theme->keyword(Settings::get('en','meta_keyword'));
        $this->theme->description(Settings::get('en','meta_description'));
        
        return $this->theme->render('site::home',$data);
	}


    public function get_featured(){
        return View::make('Site::widget.featured');
    }
}

